//
//  HXDHTTPSessionManager.h
//  qingDaoCircleOfLife
//
//  Created by huxuedong on 15/11/23.
//  Copyright © 2015年 huxuedong. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

typedef void(^loadDataSuccessed)(id json);
typedef void(^loadDataFailed)(NSError *error);

@interface HXDHTTPSessionManager : AFHTTPSessionManager

+ (instancetype)shareInstance;
+ (void)getURL:(NSString *)url withParameter:(NSDictionary *)parameter andWithSuccessBlock:(loadDataSuccessed)success andWithFailedBlock:(loadDataFailed)failed;
//+ (void)postURL:(NSString *)url withParameter:(NSDictionary *)parameter andWithSuccessBlock:(loadDataSuccessed)success andWithFailedBlock:(loadDataFailed)failed;
+ (void)getHomeDataWithParameter:(NSDictionary *)parameter andWithSuccessBlock:(loadDataSuccessed)success andWithFailedBlock:(loadDataFailed)failed;
+ (void)getURL:(NSString *)url withParameter:(NSDictionary *)parameter andWithClassName:(NSString *)className andWithSuccessBlock:(loadDataSuccessed)success andWithFailedBlock:(loadDataFailed)failed;

@end
